3.392 \(\int \frac {\sec (e+f x) (A+A \sec (e+f x))}{\sqrt {a+b \sec (e+f x)}} \, dx\)

Optimal. Leaf size=105 \[ -\frac {2 A (a-b) \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 f} \]

[Out]

-2*A*(a-b)*cot(f*x+e)*EllipticE((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(
f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b^2/f

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.032, Rules used = {4004} \[ -\frac {2 A (a-b) \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 f} \]

Antiderivative was successfully verified.

[In]

Int[(Sec[e + f*x]*(A + A*Sec[e + f*x]))/Sqrt[a + b*Sec[e + f*x]],x]

[Out]

(-2*A*(a - b)*Sqrt[a + b]*Cot[e + f*x]*EllipticE[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)
]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(b^2*f)

Rule 4004

Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)
], x_Symbol] :> Simp[(-2*(A*b - a*B)*Rt[a + (b*B)/A, 2]*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Cs
c[e + f*x]))/(a - b))]*EllipticE[ArcSin[Sqrt[a + b*Csc[e + f*x]]/Rt[a + (b*B)/A, 2]], (a*A + b*B)/(a*A - b*B)]
)/(b^2*f*Cot[e + f*x]), x] /; FreeQ[{a, b, e, f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]

Rubi steps

\begin {align*} \int \frac {\sec (e+f x) (A+A \sec (e+f x))}{\sqrt {a+b \sec (e+f x)}} \, dx &=-\frac {2 A (a-b) \sqrt {a+b} \cot (e+f x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b^2 f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 10.69, size = 248, normalized size = 2.36 \[ \frac {A (\sec (e+f x)+1) \left (2 \tan \left (\frac {1}{2} (e+f x)\right ) (a \cos (e+f x)+b)+\frac {\left (\tan ^2\left (\frac {1}{2} (e+f x)\right )-1\right ) \sqrt {\sec ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\cos ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x)} \left (\tan \left (\frac {1}{2} (e+f x)\right ) (a \cos (e+f x)+b)+\frac {\sqrt {\frac {a-b}{a+b}} (a+b) \sqrt {\frac {a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} E\left (\sin ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a+b}{a-b}\right )}{\sqrt {\frac {\cos (e+f x)}{\cos (e+f x)+1}}}\right )}{\sqrt {\sec (e+f x)}}\right )}{b f \sqrt {a+b \sec (e+f x)}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(Sec[e + f*x]*(A + A*Sec[e + f*x]))/Sqrt[a + b*Sec[e + f*x]],x]

[Out]

(A*(1 + Sec[e + f*x])*(2*(b + a*Cos[e + f*x])*Tan[(e + f*x)/2] + (Sqrt[Sec[(e + f*x)/2]^2]*Sqrt[Cos[(e + f*x)/
2]^2*Sec[e + f*x]]*((Sqrt[(a - b)/(a + b)]*(a + b)*Sqrt[(b + a*Cos[e + f*x])/((a + b)*(1 + Cos[e + f*x]))]*Ell
ipticE[ArcSin[Sqrt[(a - b)/(a + b)]*Tan[(e + f*x)/2]], (a + b)/(a - b)])/Sqrt[Cos[e + f*x]/(1 + Cos[e + f*x])]
 + (b + a*Cos[e + f*x])*Tan[(e + f*x)/2])*(-1 + Tan[(e + f*x)/2]^2))/Sqrt[Sec[e + f*x]]))/(b*f*Sqrt[a + b*Sec[
e + f*x]])

________________________________________________________________________________________

fricas [F]  time = 0.46, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {A \sec \left (f x + e\right )^{2} + A \sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right ) + a}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(A+A*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

integral((A*sec(f*x + e)^2 + A*sec(f*x + e))/sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (A \sec \left (f x + e\right ) + A\right )} \sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right ) + a}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(A+A*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate((A*sec(f*x + e) + A)*sec(f*x + e)/sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

maple [B]  time = 2.01, size = 642, normalized size = 6.11 \[ -\frac {2 A \sqrt {\frac {b +a \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \left (1+\cos \left (f x +e \right )\right )^{2} \left (-1+\cos \left (f x +e \right )\right )^{2} \left (2 \cos \left (f x +e \right ) \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sin \left (f x +e \right ) b -\cos \left (f x +e \right ) \EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sin \left (f x +e \right ) a -\cos \left (f x +e \right ) \EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sin \left (f x +e \right ) b +2 \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b \sin \left (f x +e \right )-\EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sin \left (f x +e \right ) a -\EllipticE \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sin \left (f x +e \right ) b +a \left (\cos ^{2}\left (f x +e \right )\right )-a \cos \left (f x +e \right )+b \cos \left (f x +e \right )-b \right )}{f \sin \left (f x +e \right )^{5} \left (b +a \cos \left (f x +e \right )\right ) b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(f*x+e)*(A+A*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x)

[Out]

-2*A/f*((b+a*cos(f*x+e))/cos(f*x+e))^(1/2)*(1+cos(f*x+e))^2*(-1+cos(f*x+e))^2*(2*cos(f*x+e)*EllipticF((-1+cos(
f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+
b))^(1/2)*sin(f*x+e)*b-cos(f*x+e)*EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(1+cos
(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*a-cos(f*x+e)*EllipticE((-1+cos(f*x+e)
)/sin(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1
/2)*sin(f*x+e)*b+2*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*EllipticF((
-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*b*sin(f*x+e)-EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))
^(1/2))*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*a-EllipticE
((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*
x+e))/(a+b))^(1/2)*sin(f*x+e)*b+a*cos(f*x+e)^2-a*cos(f*x+e)+b*cos(f*x+e)-b)/sin(f*x+e)^5/(b+a*cos(f*x+e))/b

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (A \sec \left (f x + e\right ) + A\right )} \sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right ) + a}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(A+A*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate((A*sec(f*x + e) + A)*sec(f*x + e)/sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {A+\frac {A}{\cos \left (e+f\,x\right )}}{\cos \left (e+f\,x\right )\,\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + A/cos(e + f*x))/(cos(e + f*x)*(a + b/cos(e + f*x))^(1/2)),x)

[Out]

int((A + A/cos(e + f*x))/(cos(e + f*x)*(a + b/cos(e + f*x))^(1/2)), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ A \left (\int \frac {\sec {\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}}}\, dx + \int \frac {\sec ^{2}{\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}}}\, dx\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(A+A*sec(f*x+e))/(a+b*sec(f*x+e))**(1/2),x)

[Out]

A*(Integral(sec(e + f*x)/sqrt(a + b*sec(e + f*x)), x) + Integral(sec(e + f*x)**2/sqrt(a + b*sec(e + f*x)), x))

________________________________________________________________________________________